<?php
require 'database2.php';
if($_SERVER["REQUEST_METHOD"]=="POST")
{
	$loginName = addslashes($_POST['_login']);
	$localpassword = addslashes($_POST['_password']);	
}
$query = "INSERT INTO LoginMaster (login,password) VALUES(:login,:password)";
$q=$db->prepare($query);
$result=$q->execute(array(':login'=>$loginName,':password'=>$localpassword));

if($result==false)
{
	print("Error user $loginName already exits $localpassword");
}
else
{
	include("login.html");
}
?>
